package cn.edu.ecut.multiton;

public class SeasonTest {

	public static void main(String[] args) {
		
		// Season s = new Season(); // The constructor Season() is undefined
		// is undefined 与 is not visible 是不同的
		// Season s = new Season( 5 , "第五季" , "朕的季节朕做主" ); // The constructor Season(int, String, String) is not visible
		
		Season s = Season.of( 1 );
		
		Season e = Season.of( "春" );
		
		System.out.println( s == e ); 
		
		Season a = Season.SPRING ;
		
		System.out.println( e == a );
		
		System.out.println( a.getIndex() + " , " + a.getName() + " , " + a.getDescription() );

	}

}
